package com.webchat.chat.service;

import com.webchat.chat.core.Service;
import com.webchat.chat.core.enums.SocketRoomStatus;
import com.webchat.chat.model.SocketRoom;

import java.util.List;


/**
 * Created by admin on 2018-06-29.
 */
public interface SocketRoomService extends Service<SocketRoom> {

    /**
     * 查询房间信息
     * @param clientId
     * @param tenantCode
     * @param status
     * @return
     */
    List<SocketRoom> findSocketRooms(String clientId, String tenantCode, SocketRoomStatus status);

    /**
     * 根据roomId查找房间
     * @param roomId
     * @return
     */
    SocketRoom findSocketRoomByRoomId(String roomId);

    List<SocketRoom> getChatRoom(String tenantCode);

    SocketRoom findbyTenantCode(String tenantCode);

    void changePublicRoomToNotice(String roomIds,Boolean flag);
}
